/*
接口
鸭子概念

接口 用来描述一个非常相似的对象 数组 函数类型
*/
var p1 = {
    name: "张三",
    age: 19,
    sex: true,
    phone: 110
};
var p2 = {
    name: "李四",
    age: 20,
    sex: false,
    phone: 180
};
console.log(p2.age);
var Computer = {
    name: '拯救者',
    price: 1267,
    info: {
        content: '下手机卡号了解客户'
    },
    like: function (a, b) {
        console.log('like');
    },
    say: function () {
        return 1000;
    },
    slider: ['32', '12']
};
var res = {
    name: '5614562',
    age: 1223,
    list: [1, 2.3, 4, 2],
    say: function () {
        return 1213;
    }
};
// let obj={
//     name:'张三'
// }
// obj.name
// obj['name']
console.log([1, 2, 3, 4]);
var ar = [122, 33, 45, '13', { name: '张三' }, [12, 3, 2]];
var fun1 = function (a, b) {
    return a.length + b;
};
fun1('123', 12);
